<%--
  Created by IntelliJ IDEA.
  User: Joker X
  Date: 2022/3/20
  Time: 12:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="../common/BootStrapCDN.jsp"></jsp:include>
    <title>图书修改列表</title>
</head>
<body>
<div class="container">
    <div class="row-fluid">
        <div class="page-header">
            <h1>图书修改列表<small> ——————————————————————————————— Created By Joker</small></h1>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/book/updateBook" method="post">
        <%-- 修改的时候sql语句是根据id来修改，需要将id设置到隐藏域中传递到controller去 --%>
        <input type="hidden" name="bookID" value="${book.bookID}">
        <div class="form-group">
            <label>名称</label>
            <input type="text" class="form-control" name="bookName" value="${book.bookName}" placeholder="图书名称" required>
        </div>
        <div class="form-group">
            <label>数量</label>
            <input type="text" class="form-control" name="bookCounts" value="${book.bookCounts}" placeholder="图书数量" required>
        </div>
        <div class="form-group">
            <label>详情</label>
            <input type="text" class="form-control" name="detail" value="${book.detail}" placeholder="详情" required>
        </div>
        <button type="submit" class="btn btn-default">修改</button>
    </form>
</div>

</body>
</html>
